package book_management.user;

import book_management.book.BookList;
import book_management.operation.IOperation;

public abstract class User {
    protected  String name;

    protected IOperation[] operations;//看这个东西数组用法可不止这一种

    public abstract int menu();//看起来没啥用是吧，如果AdminUser和NormalUser都要这个菜单重名，你已经测试过了

    public void doOperation(int choice , BookList bookList){
        operations[choice - 1].work(bookList);
    }

}
